package edu.gdkm.dao;

import edu.gdkm.pojo.Teacher;
import org.apache.ibatis.annotations.*;

public interface ITeacherDao {
    //6、教师查看个人课程接口（可以查看自己名下开设的所有课程）
    @Select("select * from t_teacher where tid=#{id}")
    @Results({
            @Result(
                    column = "tid",
                    property = "courseList",
                    many = @Many(select="edu.gdkm.dao.ICourseDao.queryCourseByTid")
            )
    })
    public Teacher queryTeacherById(Integer id);
}
